package symbols; // Arquivo Array.java
import lexer.*;

public class Array extends Type {
	public Type of; // arranjo *of* type
	
	public int size = 1; // numero de elementos
	
	public Array(int sz, Type p) {
		super("[]", Tag.INDEX, sz*p.width); size = sz; of = p;
	}
	
	public String toString() { return "[" + size + "] " + of.toString(); }
}